@extends('model/admin')
@section('title','添加用户')
@section('content')
<!-- @if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif -->
	@if (count($errors) > 0)
	<div class="mws-form-message error">
    	This is an error message
        <ul>
        	 @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
    @endif
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>用户注册</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/admin/member" method='post' enctype='multipart/form-data'>
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">头像</label>
        				<div class="mws-form-item">
        					<input type="file" class="small" name='picname'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">用户名</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name='username'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">密码</label>
        				<div class="mws-form-item">
        					<input type="password" class="small" name='password'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">确认密码</label>
        				<div class="mws-form-item">
        					<input type="password" class="small" name='repassword'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">电话</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name='phone'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">邮箱</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name='email'>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">性别</label>
        				<div class="mws-form-item clearfix">
        					<ul class="mws-form-list inline">
        						<li><input type="radio" name='sex' value='0'> <label>女</label></li>
        						<li><input type="radio" name='sex' value='1' checked> <label>男</label></li>
        					</ul>
        				</div>
        			</div>
        			
        			<div class="mws-form-row">
        				<label class="mws-form-label">用户等级</label>
        				<div class="mws-form-item clearfix">
        					<ul class="mws-form-list inline">
        						<li><input type="radio" name='state' value='0' checked> <label>普通用户</label></li>
        						<li><input type="radio" name='state' value='1'> <label>初级会员</label></li>
        						<li><input type="radio" name='state' value='2'> <label>中级会员</label></li>
        						<li><input type="radio" name='state' value='3'> <label>高级会员</label></li>
        						<li><input type="radio" name='state' value='4'> <label>特级会员</label></li>
        					</ul>
        				</div>
        			</div>
        		</div>
        		{{ csrf_field() }}
        		<div class="mws-button-row">
        			<input type="submit" value="确认注册" class="btn btn-danger">
        			<input type="reset" value="重新填写" class="btn ">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection